|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectrolesystem.roles.auction.Bidder
public abstract class Bidder
This role is the bidder of an auction. Keywords: auction, bidder.
| Field Summary | |
|---|---|
static KnownEvent |
KE_auctionOver
An auctioneer notifies that the auction is over. |
static KnownEvent |
KE_giveGood
An auctioneer gives a good. |
static KnownEvent |
KE_notifyGood
An auctioneer notifies the good on sale. |
static KnownEvent |
KE_notifyKind
An auctioneer notifies the kind of the auction. |
static KnownEvent |
KE_notifySituation
An auctioneer notifies the current situation of the auction. |
static KnownEvent |
KE_talk
Another bidder talks. |
static KnownEvent |
KE_youWon
An auctioneer notifies that I have won the auction and thus I must pay. |
static java.lang.String |
ROLE_ID
Role identifier. |
| Constructor Summary | |
|---|---|
Bidder()
|
|
| Method Summary | |
|---|---|
static RoleAction |
askGood(int addressee)
Asks the description of the good on sale. |
static RoleAction |
askKind(int addressee)
Asks the kind of the auction (English, Dutch...). |
static RoleAction |
askSituation(int addressee)
Asks the current situation of the auction. |
static RoleAction |
bid(int addressee,
Price content)
Makes a bid. |
static RoleAction |
pay(int addressee,
Money content)
Pays. |
static RoleAction |
talk(int addressee,
java.lang.String content)
Talks. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String ROLE_ID
public static final KnownEvent KE_notifyKind
public static final KnownEvent KE_notifyGood
public static final KnownEvent KE_notifySituation
public static final KnownEvent KE_auctionOver
public static final KnownEvent KE_youWon
public static final KnownEvent KE_giveGood
public static final KnownEvent KE_talk
| Constructor Detail |
|---|
public Bidder()
| Method Detail |
|---|
public static RoleAction askKind(int addressee)
addressee - Auctioneerpublic static RoleAction askGood(int addressee)
addressee - Auctioneerpublic static RoleAction askSituation(int addressee)
addressee - Auctioneer
public static RoleAction bid(int addressee,
Price content)
addressee - Auctioneercontent - Bid.
public static RoleAction pay(int addressee,
Money content)
addressee - Auctioneercontent - Payment.
public static RoleAction talk(int addressee,
java.lang.String content)
addressee - Biddercontent - Message.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||